package com.dayuanit.dy17.atm.service;

import com.dayuanit.dy17.atm.entity.User;
import com.dayuanit.dy17.atm.entity.WxBind;
import com.dayuanit.dy17.oauth.wx.WxUserInfoDomain;

public interface IUserService {

    User login(String username, String password);

    void register(String username, String password, String confirmPassword);

    void bindEmail(long userId, String email, String sign, long createTime);

    void resetPwd(String password, String confimPwd, String bindEmail, String sign, long createTime);

    void wxLoginBind(String username, String password, WxUserInfoDomain wxUserInfoDomain);

    WxBind getWxbind(String openId);

    User getUser(long userId);
}
